<a href='https://github.com/angular/angular.js/edit/v1.6.x/docs/content/error/$resource/badargs.ngdoc?message=docs(error%2Fbadargs)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $resource:badargs
  <div><span class='hint'>Too Many Arguments</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Expected up to 4 arguments [params, data, success, error], got {0} arguments">Expected up to 4 arguments [params, data, success, error], got {0} arguments</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when specifying too many arguments to a <a href="api/ngResource/service/$resource"><code>$resource</code></a> action, such as <code>get</code>, <code>query</code> or any user-defined custom action.
These actions may take up to 4 arguments.</p>
<p>For more information, refer to the <a href="api/ngResource/service/$resource"><code>$resource</code></a> API reference documentation.</p>

</div>


